JavaScript

listObj.setCheckedRows Method

Syntax

listObj.setCheckedRows(array)

Arguments

arraynumber array

An array of row number (zero based) of rows to check.

Description

Takes an array or zero based row numbers and checks the specified rows.

Discussion

The setCheckedRows() method checks the rows specified in the row number array passed to the function. Rows are zero-based (i.e. row 0 corresponds to the first row in the List.) Any existing checked rows are left unmodified.

Example

var listObj = {dialog.object}.getControl('LIST1');

if (listObj) {
    var arr = [0,1,2,3,10];
    listObj.setCheckedRows(arr);
}
This method is only available if Has check-box select control has been enabled.

Limitations

List Control with 'Has check-box select control' Enabled

See Also